package com.bt.table.ppt;

/**
 * Bis_tool_grId entity. @author MyEclipse Persistence Tools
 */

public class Bis_tool_grId implements java.io.Serializable {

	// Fields

	private String tool_id_fk;
	private String toolg_id;

	// Constructors

	/** default constructor */
	public Bis_tool_grId() {
	}

	/** full constructor */
	public Bis_tool_grId(String tool_id_fk, String toolg_id) {
		this.tool_id_fk = tool_id_fk;
		this.toolg_id = toolg_id;
	}

	// Property accessors

	public String getTool_id_fk() {
		return this.tool_id_fk;
	}

	public void setTool_id_fk(String tool_id_fk) {
		this.tool_id_fk = tool_id_fk;
	}

	public String getToolg_id() {
		return this.toolg_id;
	}

	public void setToolg_id(String toolg_id) {
		this.toolg_id = toolg_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bis_tool_grId))
			return false;
		Bis_tool_grId castOther = (Bis_tool_grId) other;

		return ((this.getTool_id_fk() == castOther.getTool_id_fk()) || (this
				.getTool_id_fk() != null && castOther.getTool_id_fk() != null && this
				.getTool_id_fk().equals(castOther.getTool_id_fk())))
				&& ((this.getToolg_id() == castOther.getToolg_id()) || (this
						.getToolg_id() != null
						&& castOther.getToolg_id() != null && this
						.getToolg_id().equals(castOther.getToolg_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTool_id_fk() == null ? 0 : this.getTool_id_fk()
						.hashCode());
		result = 37 * result
				+ (getToolg_id() == null ? 0 : this.getToolg_id().hashCode());
		return result;
	}

}